package com.acme;

public class Arrays {
	public static void main(String[] args) {
		int [] array = new int[5];
		// ANSWER [YA] OK
		System.out.println(array[2]); // All elements of array initialized with default values which is 0 for integer.
		for (int i = 0; i < array.length; i++) {
			array[i] = i + 1;
		}
		System.out.println(array.length);
		// int fail = array[5]; will throw ArrayIndexOutOfBoundException because array indexes start with 0
	}
}